package com.retoc.oawx.mapper;

import com.retoc.oawx.domain.Leave;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;

import java.util.ArrayList;
import java.util.HashMap;

/**
* @author retoc
* @description 针对表【tb_leave】的数据库操作Mapper
* @createDate 2022-06-12 11:10:24
* @Entity com.retoc.oawx.domain.Leave
*/
@Mapper
public interface LeaveMapper extends BaseMapper<Leave> {

    public int insertLeave(Leave leave);

    public ArrayList<HashMap> selectLeaveListByCreator(HashMap param);

    public ArrayList<HashMap> selectOldLeaveListByCreator(HashMap param);

    public Leave searchLeaveByInstanceId(String instanceId);

    public HashMap selectLeaveById(int id);

    public int setInstanceId(HashMap map);

    public int setStatus(HashMap map);

    public Leave selectLeaveByid(Integer id);

    public int deleteByLId(Integer id);
}




